<@_voteList startStartDate=startStartDate endStartDate=endStartDate 
            startEndDate=startEndDate endEndDate=endEndDate title=title disabled=disabled 
            orderField=orderField orderType=orderType pageIndex=pageNum pageSize=numPerPage>
<div class="pageHeader">
    <form class="pagerForm" autocomplete="off" onsubmit="return navTabSearch(this);" method="post">
        <#include "../include_page/parameters.html"/>
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label><@t.page 'start_date'/>:</label>
                    <input type="text" name="startStartDate" class="date" size="10" dateFmt="yyyy-MM-dd" value="${startStartDate!}" />
                    <span>-</span>
                    <input type="text" name="endStartDate" class="date" size="10" dateFmt="yyyy-MM-dd" value="${endStartDate!}" />
                </li>
                <li>
                    <label><@t.page 'end_date'/>:</label>
                    <input type="text" name="startEndDate" class="date" size="10" dateFmt="yyyy-MM-dd" value="${startEndDate!}" />
                    <span>-</span>
                    <input type="text" name="endEndDate" class="date" size="10" dateFmt="yyyy-MM-dd" value="${endEndDate!}" />
                </li>
                <li>
                    <label><@t.page 'title'/>:</label>
                    <input type="text" name="title" value="${title!}" />
                </li>
                <#include "../include_page/disabled.html"/>
            </ul>
            <div class="subBar">
                <ul>
                    <li>
                        <button type="submit" class="buttonActive"><@t.page 'button.search'/></button>
                    </li>
                </ul>
            </div>
        </div>
    </form>
</div>
<@_sysAuthorized roleIds=admin.roles urls='cmsVote/add,cmsVote/delete,cmsVote/view'><#assign authorizedMap=map/></@_sysAuthorized>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
        <#if authorizedMap['cmsVote/add']>
            <li><a href="cmsVote/add.html" target="navTab" rel="cmsVote/add"><i class="icon-plus-sign-alt icon-large"></i> <@t.page 'button.add'/></a></li>
        </#if>
        <#if authorizedMap['cmsVote/delete']>
            <li><a href="cmsVote/delete?_csrf=<@_csrfToken admin=true/>" title="<@t.page 'confirm.batch_delete'/>" target="selectedTodo" rel="ids"><i class="icon-trash icon-large"></i> <@t.page 'button.batch_delete'/></a></li>
        </#if>
        </ul>
    </div>
    <table class="table" width="100%" layoutH>
        <thead>
            <tr>
                <th width="20"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th>ID</th>
                <th><@t.page 'title'/></th>
                <th><@t.page 'description'/></th>
                <th orderField="scores" class="<#if orderField?has_content&&'scores'==orderField><#if 'asc'=orderType>asc<#else>desc</#if><#else>order</#if>"><@t.page 'content.score'/></th>
                <th orderField="startDate" class="<#if orderField?has_content&&'startDate'==orderField><#if 'asc'=orderType>asc<#else>desc</#if><#else>order</#if>"><@t.page 'start_date'/></th>
                <th orderField="endDate" class="<#if orderField?has_content&&'endDate'==orderField><#if 'asc'=orderType>asc<#else>desc</#if><#else>order</#if>"><@t.page 'end_date'/></th>
                <th orderField="createDate" class="<#if orderField?has_content&&'createDate'==orderField><#if 'asc'=orderType>asc<#else>desc</#if><#else>order</#if>"><@t.page 'create_date'/></th>
                <th class="wrap"><@t.page 'operate'/></th>
            </tr>
        </thead>
        <tbody>
            <#list page.list as a>
            <tr>
                <td class="center"><input name="ids" value="${a.id}" type="checkbox"></td>
                <td class="center">${a.id!}</td>
                <td><a href="cmsVote/view.html?id=${a.id}" class="exclude-translate" target="dialog" rel="viewVote${a.id}">${a.title!}</a></td>
                <td class="center exclude-translate">${a.description!}</td>
                <td>${a.scores!}</td>
                <td>${a.startDate!}</td>
                <td>${a.endDate!}</td>
                <td>${a.createDate!}</td>
                <td>
                <#if !a.disabled>
                    <#if authorizedMap['cmsVote/add']>
                        <a href="cmsVote/add.html?id=${a.id}" class="edit btnText blue" target="navTab" rel="cmsVote/edit"><i class="icon-edit"></i> <@t.page 'button.edit'/></a>
                    </#if>
                    <#if authorizedMap['cmsVote/delete']>
                        <a href="cmsVote/delete?ids=${a.id}&_csrf=<@_csrfToken admin=true/>" class="btnText warn" title="<@t.page 'confirm.delete'/>" target="ajaxTodo"><i class="icon-trash"></i> <@t.page 'button.delete'/></a>
                    </#if>
                </#if>
                </td>
            </tr>
            </#list>
        </tbody>
    </table>
    <#include "../include_page/page.html"/>
</div>
</@_voteList>